package com.ytf.test.eighth;

/**
 * @author: YTF
 * @date: 2025/1/3 15:16
 * @version: 1.0
 * @description:
 */
public class Shape {
    void draw(){
        System.out.println("Shape.draw()");
    }
    void erase(){
        System.out.println("Shape.erase()");
    }
    void use(){
        System.out.println("Shape.use()");
    }
}
class Circle extends Shape{
    @Override
    void draw() {
        System.out.println("Circle.draw()");
    }

    @Override
    void erase() {
        System.out.println("Circle.draw()");
    }
}
class Square extends Shape{
    @Override
    void draw() {
        System.out.println("Square.draw()");
    }

    @Override
    void erase() {
        System.out.println("Square.draw()");
    }
}
class Triangle extends Shape{
    @Override
    void draw() {
        System.out.println("Triangle.draw()");
    }

    @Override
    void erase() {
        System.out.println("Triangle.draw()");
    }

    @Override
    void use(){
        System.out.println("Triangle.use()");
    }
}
